package cn.edu.sju;

import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;

public class work04
{
    
    public static void main(String[] args)
    {
        try {
            FileReader fr=new FileReader("C:\\myDoc\\hello.txt");
            BufferedReader br=new BufferedReader(fr);
            String line =br.readLine();
            if(line!=null) {
                System.out.println(line);
                line=br.readLine();             
            }
            br.close();
            fr.close();
            System.out.println("");
        }
        catch(IOException e) {
            System.out.println("ļڣ");
        }
        
    }
    
}
